<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld"    prefix="vectrics" %>
<%@ page import="org.vectrics.recruiter.struts.admin.JobCandidateForm" %>

<%@ page import="org.vectrics.config.ApplicationConfiguration" %>
<%@ page import="org.vectrics.recruiter.config.RecruitConfig" %>


<jsp:useBean id="jobCandidateForm" class="org.vectrics.recruiter.struts.admin.JobCandidateForm" scope="request"/>

<vectrics:errors/>
<%
	String personId = request.getParameter("personId");
%>

<html:form action="/admin/jobs/candidate/reason/save" method="POST">
	<html:hidden property="jobCandidateId"/>
	<html:hidden property="jobId"/>
	<html:hidden property="personId"/>
	<table width="600">
		<tr>
			<td width="50%">
				<table cellpadding="4" cellspacing="1">
					<tr>
						<td class="formBg1">
							<font class="stdFont">
								<bean:message key="prompt.job.title"/>
							</font>
						</td>
						<td class="formBg1">
							<font class="stdFont">
								<bean:write name="jobCandidateForm" property="jobTitle"/>
							</font>
						</td>
					</tr>
					<tr>
						<td class="formBg2">
							<font class="stdFont">
								<bean:message key="prompt.candidate.name"/>
							</font>
						</td>
						<td class="formBg2">
							<font class="stdFont">
								<bean:write name="jobCandidateForm" property="candidateName"/>
							</font>
						</td>
					</tr>
					<tr>
						<td class="formBg1" valign="top">
							<font class="stdFont">
								<bean:message key="prompt.candidate.strength"/>
							</font>
						</td>
						<td class="formBg1">
							<font class="stdFont">
								<bean:write name="jobCandidateForm" property="strength"/>
							</font>
						</td>
					</tr>

					<tr>
						<td class="formBg2" valign="top">
							<font class="stdFont">
								<bean:message key="prompt.candidate.status"/>
							</font>
						</td>
						<td class="formBg2">
							<font class="stdFont">
								<bean:write name="jobCandidateForm" property="statusDescription"/>
							</font>
						</td>
					</tr>
					
					<tr>
						<td class="formBg1" valign="top">
							<font class="stdFont">
								<bean:message key="prompt.candidate.status.reason"/>
							</font>
						</td>
						<td class="formBg1" valign="top">
							<html:select name="jobCandidateForm" property="statusReasonCode" styleClass="formComboClass">
							  <html:options collection="reasons" labelProperty="description" property="code"/>
							</html:select>
						</td>
					</tr>
					
					<tr>
						<td valign="TOP" align="left"></td>
						<td valign="TOP" align="left">
							<vectrics:formButton elementId="ok.btn" code="button.ok" phraseCode="button.ok" value="submit" name="submit"/>
							&nbsp;
							<vectrics:formButton elementId="cancel.btn" code="button.cancel" phraseCode="button.cancel" value="cancel" name="cancel"/>						
						</td>
						<td></td>
					</tr>
				</table>
			</td>
			
		</tr>
	</table>
	
</html:form>
